{extends 'base/site2.html'}
{block name="page_header"}{include file="common/header.html" inline}{/block}
{block name="page_nav"}{include file="common/slide-nav.html" inline}{/block}
{block name="page_styles"}
    <link rel="stylesheet" type="text/css" href="/css/mediation/mediate/index.css" />
{/block}
{block name="page_scripts"}
    <script type="text/javascript" src="/js/mediation/mediate/add.min.js" init="mediation/mediate/add"></script>
{/block}
{block name="page_section"}
    <ol class="breadcrumb pad-no">
        <li><a href="/">{$sysname}</a></li>
        <li><a href="/plaintiff/list">工作台-案件调解</a></li>
        <li class="active">添加</li>
    </ol>
    <div class="sessionPage">
        <div class="page-header">
            <span class="line"></span>
            <strong class="tit">添加调解记录</strong>
        </div>
        <div class="row mr-none">
            <form action="/apipublic/addMediateRecord" method="post" role="ajaxfrom" valid-after="true" class="ui-call-notes-form form-ele1">
                <input type="hidden" name="case_id" value="{$case_id}" />
                <input type="hidden" name="mobile_id" value="{$mobile_id}" />
                <input type="hidden" name="file_name" value="" />
                <input type="hidden" name="is_ht" value="{$is_ht}" />
                <input type="hidden" name="write" value="{$write}" />

                <h4>* 调解方式： </h4>
                {if $mobile_id}
                    <input type="hidden" name="type" value="3" />
                {/if}
                <select name="type" class="form-control" style="width: 98%;" {if $mobile_id} disabled="disabled" {/if}  data-valid="notempty">
                    <option value="" style="display: none;" disabled selected>——请选择——</option>
                    {if $mobile_id} <option value="3" selected >固话调解</option>{/if}
                    <option value="4">微信调解</option>
                    <option value="5">线下调解</option>
                    <option value="6">其他</option>
                </select>

                <h4>* 本次备注信息：</h4>
                <textarea name="desc" class="form-control" rows="3" style="width: 98%;" data-valid="notempty"></textarea>

                {if $mobile_id}
                <h4>* 本次呼叫是否为有效号码： </h4>
                <select name="valid_num" class="form-control" style="width: 98%;"  data-valid="notempty">
                    <option value="" style="display: none;" disabled selected>——请选择——</option>
                    <option value="1">是</option>
                    <option value="2">否</option>
                </select>
                {/if}
                <h4>被告提供有效号码：</h4>
                <input type="text" style="width: 98%;" name="YXHM" class="form-control"/>
                <h4>* 本次调解结果：</h4>
                <select name="result" class="form-control" style="width: 98%;" role-status="result" data-valid="notempty">
                    <option value="" style="display: none;" disabled selected>——请选择——</option>
                    <option value="1">接受调解</option>
                    <option value="2">需再次沟通</option>
                    <option value="4">不适宜调解</option>
                    <option value="3">调解不成</option>
                </select>
                <div role-status="time_next" style="position: relative;display:none;">
                    <h4>* 约定下次调解时间：</h4>
                    <input type="text" readonly style="width: 98%;" name="time" id="time_next" class="form-control" value="{date("Y-m-d")}"/>
                </div>
                <div role-status="time_pay" style="position: relative;display:none;">
                    <div role-status="" style="position: relative;">
                        <h4>有效送达地址：</h4>
                        <input type="text" style="width: 98%;" name="YXCDDZ" class="form-control"/>
                    </div>
                    <div role-status="" style="position: relative;" class="ui-call-notes-half">
                        <h4>* 还款能力：</h4>
                        <select name="HKNL" class="form-control" style="width: 98%;">
                            <option value="" style="display: none;" disabled selected>——请选择——</option>
                            <option value="强">强</option>
                            <option value="一般">一般</option>
                            <option value="弱">弱</option>
                        </select>
                    </div>
                    <div role-status="" style="position: relative;" class="ui-call-notes-half">
                        <h4>* 还款意愿：</h4>
                        <select name="HKYY" class="form-control" style="width: 98%;">
                            <option value="" style="display: none;" disabled selected>——请选择——</option>
                            <option value="强">强</option>
                            <option value="一般">一般</option>
                            <option value="弱">弱</option>
                        </select>
                    </div>
                    <div role-status="" style="position: relative;">
                        <h4>* 还款方式：</h4>
                        <select name="YDHKFS" class="form-control" id="reimbursementType" style="width: 98%;">
                            <option value="" style="display: none;" disabled selected>——请选择——</option>
                            <option value="1">分期还款</option>
                            <option value="2">全额还款</option>
                        </select>
                    </div>
                    <div id="fullPayment" style="display:none;">
                        <div role-status="" style="position: relative;" class="ui-call-notes-half">
                            <h4>* 约定还款时间：</h4>
                            <input type="text" readonly style="width: 98%;" name="repay_time[1]" id="time_pay" class="form-control" value="{date("Y-m-d")}"/>
                        </div>
                        <div role-status="" style="position: relative;" class="ui-call-notes-half">
                            <h4>* 约定还款金额：</h4>
                            <input type="text" style="width: 98%;" name="repay_amount[1]" id="amount_pay" class="form-control"/>
                        </div>
                    </div>
                    <div role-status="" style="position: relative;;display:none;" class="ui-call-notes-time-box" id="payInstallments">
                        <div class="ui-call-notes-times">
                            <div class="ui-call-notes-time-item"><span>第1期</span><input type="text" readonly style="width: 40%;" name="repay_time[1]" id="time_next1" class="form-control" value="{date("Y-m-d")}"/><input type="text" style="width: 40%;" name="repay_amount[1]" id="next_amount_pay" class="form-control"/></div>
                        </div>
                        <div class="ui-call-notes-time-btn-box">
                            <span class="btn btn-primary col-lg-3 ui-call-notes-time-btn payInstallmentsAdd" id="payInstallmentsAdd" time="{date("Y-m-d")}">添加</span>
                        </div>
                    </div>
                </div>
                <div role-status="bsy_rerult" style="position: relative;display:none;">
                    <h4>* 调解不成原因：</h4>
                    <select name="" class="form-control" style="width: 98%;" id="improperCauseout" multiple title="——请选择——">
                        <option value={literal}{"type":"1","text":""}{/literal} >自定义</option>
                        <option value={literal}{"type":"2","text":"双方未达成一致；"}{/literal} >双方未达成一致；</option>
                        <option value={literal}{"type":"3","text":"当事人无能力还款；"}{/literal} >当事人无能力还款；</option>
                        <option value={literal}{"type":"4","text":"电话未有效触达；"}{/literal} >电话未有效触达；</option>
                        <option value={literal}{"type":"5","text":"电话无人接听/占线/关机；"}{/literal} >电话无人接听/占线/关机；</option>
                        <option value={literal}{"type":"6","text":"电话为空号/停机；"}{/literal} >电话为空号/停机；</option>
                        <option value={literal}{"type":"7","text":"否认为当事人本人/否认借款事实；"}{/literal} >否认为当事人本人/否认借款事实；</option>
                        <option value={literal}{"type":"8","text":"当事人无还款意愿无法继续调解（明确表示拒绝调解/态度恶劣/轻浮/辱骂调解员等）；"}{/literal} >当事人无还款意愿无法继续调解（明确表示拒绝调解/态度恶劣/轻浮/辱骂调解员等）；</option>
                        <option value={literal}{"type":"9","text":"当事人无还款能力；"}{/literal} >当事人无还款能力；</option>
                        <option value={literal}{"type":"10","text":"原告产品违法违规或其他情况（利率过高、收取砍头息、暴力催收、泄露公民信息、虚假宣传、原告主动撤案等）"}{/literal} >原告产品违法违规或其他情况（利率过高、收取砍头息、暴力催收、泄露公民信息、虚假宣传、原告主动撤案等）</option>
                    </select>
                    <textarea name="TJBCYY" class="form-control" rows="3" style="width: 98%;display: none;" id="causeMaladaptationout"></textarea>
                </div>
                <div role-status="nobsy_rerult" style="position: relative;display:none;">
                    <h4>* 不适宜调解原因：</h4>
                    <select name="" class="form-control" style="width: 98%;" id="noimproperCauseout" multiple title="——请选择——">
                        <option value={literal}{"type":"1","text":""}{/literal} >自定义</option>
                        <option value={literal}{"type":"2","text":"坚决拒绝调解，坚决拒绝还款；"}{/literal} >坚决拒绝调解，坚决拒绝还款；</option>
                        <option value={literal}{"type":"3","text":"有强烈的不满情绪；"}{/literal} >有强烈的不满情绪；</option>
                        <option value={literal}{"type":"4","text":"存在可能激发矛盾；"}{/literal} >存在可能激发矛盾；</option>
                    </select>
                    <textarea name="BSYTJYY" class="form-control" rows="3" style="width: 98%;display: none;" id="nocauseMaladaptationout"></textarea>
                </div>
                <h4>* 金融风险评估：</h4>
                <select name="" class="form-control selectpicker" style="width: 98%;" id="riskAssessmentout" width="auto" multiple title="——请选择——">
                    <option value={literal}{"type":"1","text":""}{/literal} >自定义</option>
                    <option value={literal}{"type":"2","text":"有风险，被告对调解较为抗拒/案情分歧较大，可能会向监管部门投诉；"}{/literal} >有风险，被告对调解较为抗拒/案情分歧较大，可能会向监管部门投诉；</option>
                    <option value={literal}{"type":"3","text":"有风险，被告情绪激动且言语有极端倾向；"}{/literal} >有风险，被告情绪激动且言语有极端倾向；</option>
                    <option value={literal}{"type":"4","text":"有风险，被告可能组织/参与抗债联盟；"}{/literal} >有风险，被告可能组织/参与抗债联盟；</option>
                    <option value={literal}{"type":"5","text":"有风险，被告患有身体/精神疾病；"}{/literal} >有风险，被告患有身体/精神疾病；</option>
                    <option value={literal}{"type":"6","text":"原告产品/业务/资质/制度存在问题；"}{/literal} >原告产品/业务/资质/制度存在问题；</option>
                    <option value={literal}{"type":"7","text":"原告企业信息存在问题（被约谈、被吊销、被清退、被停业整顿、资金链断裂、主要责任人抽逃资金等）；"}{/literal} >原告企业信息存在问题（被约谈、被吊销、被清退、被停业整顿、资金链断裂、主要责任人抽逃资金等）；</option>
                    <option value={literal}{"type":"8","text":"暂未发现风险。"}{/literal} >暂未发现风险。</option>
                </select>
                <textarea name="JRFXPG" class="form-control" rows="3" style="width: 98%;display: none;" id="riskAssessmentTextout"></textarea>
                <br>
                <br>
                <br>
                <br>
                <div class="form-group-row">
                    <button type="button" class="btn btn-primary btn-lg col-lg-2 col-md-offset-2" role-click="submit">保存</button>
                    <a href="/mediate/index"><button type="button" class="btn btn-default btn-lg col-lg-2 col-md-offset-2">返回</button></a>
                </div>
        </div>
    </div>
{/block}